package com.itheima.service01;

import com.itheima.domain.Classes;
import com.itheima.mapper01.ClassesMapper01;
import com.itheima.utils.MyBatisUtils;
import org.junit.Test;

import java.util.List;

public class TestDemo {
    @Test
    public void findAll() {
        ClassesMapper01 mapper = MyBatisUtils.getSqlSession().getMapper(ClassesMapper01.class);
        List<Classes> all01 = mapper.findAll01();
        for (Classes classes : all01) {
            System.out.println(classes);
        }
    }

}
